home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
JCSM Shareware Collection 1993 November
/
JCSM Shareware Collection - 1993-11.iso
/
cl460
/
cfootblj.lzh
/
SETUP1.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-02-17
|
4KB
|
93 lines
echo off
if not "%1"=="" if not "%1"=="?" goto SETUP
:HELP
echo Command:
echo SETUP1 {source drive:} {\root-sub.dir} {system drive:} {\root-sub.dir}
echo Result:
echo Load files from source drive root sub-directory
echo to system drive root sub-directory
echo Examples:
echo A:SETUP1 A: \ C: \FOOTBALL
echo C:\DOWNLOAD.DIR\SETUP1 C: \DOWNLOAD.DIR C: \FOOTBALL
goto END
:SETUP
if not "%1"=="" if not "%2"=="" if not "%3"=="" if not "%4"=="" goto OK
echo You must specify 4 SETUP1 parameters.
goto HELP
:OK
if "%2"=="\" set d1=\
if not "%2"=="\" set d1=%2\
if "%4"=="\" set d2=\
if not "%4"=="\" set d2=%4\
if exist %3\config.bak echo ** ERROR ** %3\CONFIG.BAK already exists. Erase %3\CONFIG.BAK first.
if exist %3\config.bak goto HELP
echo Source drive is %1
echo Source drive sub-directory is %2
echo System drive is %3
echo System drive sub-directory is %4
if not exist %3%4footbal$.exe mkdir %3%4
dir %3%4
echo Press CTRL + C to cancel loading files.
pause
copy %1%d1%setup1.bat %3%4
copy %1%d1%setup2.bat %3%4
copy %1%d1%readme.1st %3%4
copy %1%d1%footbal$.exe %3%4
copy %1%d1%football.dat %3%4
copy %1%d1%footdoc.bat %3%4
copy %1%d1%FE.bat %3\
copy %1%d1%football.bat %3\
copy %1%d1%football.mod %3%4
copy %1%d1%footcode.bin %3%4
copy %1%d1%register.frm %3%4
copy %1%d1%sdn.txt %3%4
copy %1%d1%cpuload.exe %3%4
echo Files have been loaded to %3\
dir %3\FE.bat
dir %3\football.bat
pause
echo Files have been loaded to %3%4
dir %3%4
pause
cls
echo You can add a RAM drive (optional) to your CONFIG.SYS.
if not exist %3\dos\vdisk.sys if not exist %3\dos\ramdrive.sys echo RAM disk software missing
if not exist %3\dos\vdisk.sys if not exist %3\dos\ramdrive.sys goto HELP
if exist %3\dos\ramdrive.sys echo DEVICE=\DOS\RAMDRIVE.SYS 16 512 16
if exist %3\dos\vdisk.sys echo DEVICE=\DOS\VDISK.SYS 16 512 16
echo will be added to CONFIG.SYS with your OK.
echo Your current CONFIG.SYS is listed below:
echo ----------------------------------------------------
type %3\config.sys
echo ----------------------------------------------------
echo Press CTRL + C to leave CONFIG.SYS as is and go on
echo to Setup2 without adding an optional RAM drive.
pause
if exist config.new erase config.new
copy %3\config.sys config.new
if exist %3\dos\ramdrive.sys echo DEVICE=\DOS\RAMDRIVE.SYS 16 512 16 >> config.new
if exist %3\dos\vdisk.sys echo DEVICE=\DOS\VDISK.SYS 16 512 16 >> config.new
cls
echo You can continue to execute to
echo instantly change the CONFIG.SYS data; or,
echo you can edit your CONFIG.SYS to include the following code,
echo displayed from the file CONFIG.NEW
echo ----------------------------------------------------
type config.new
echo ----------------------------------------------------
echo Press CTRL + C to cancel the update to CONFIG.SYS
pause
if exist %3\config.bak echo ** ERROR ** %3\CONFIG.BAK already exists. Erase %3\CONFIG.BAK first.
if exist %3\config.bak goto HELP
rename %3\config.sys %3\config.bak
echo Renaming the old CONFIG.SYS to CONFIG.BAK ...
copy config.new %3\config.sys
erase config.new
echo ------------------------------------------------
echo Note your RAM disk designation when warm-started
echo ------------------------------------------------
echo Press ALT + CTRL + DEL to reset your machine
echo ------------------------------------------------
echo Setup1 complete ... Now execute Setup2
:END